import { Swiper } from 'antd-mobile'
import React from 'react'

const MySwiper = () => {
    const data=[
        '../images/1.jpg',
        '../images/2.jpg',
        '../images/3.jpg',
        '../images/4.jpg',
    ]
  return (
    <div>
       <Swiper loop autoplay>
         {
            data.map((v,i)=>{
                return <Swiper.Item key={i}>
                <img src={v} alt='' style={{width: "100%",height:"200px"}}/>
                </Swiper.Item>
            })
         }
       </Swiper>
    </div>
  )
}

export default MySwiper
